package com.oig.sys.auth.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.EntityListeners;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.GenerationType;
import javax.persistence.GeneratedValue;
import java.io.Serializable;


/**
 * @author wuxl
 * 第三方登录方式表
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_open_auth")
@EntityListeners({AuditingEntityListener.class})
public class TbOpenAuth implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 * 授权类型
	 */
	@Column(name = "auth_type")
	private String authType;
	/**
	 * 认证地址
	 */
	@Column(name = "auth_url")
	private String authUrl;

	/**
	 * 授权中心颁发的clientid
	 */
	@Column(name = "client_id")
	private String clientId;

	/**
	 * 认证授权中心颁发的加密签名字符串
	 */
	@Column(name = "client_security")
	private String clientSecurity;

	/**
	 */
	@Column(name = "status")
	private String status;

	@Column(name = "pc_back_url")
	private String pcBackUrl;
	@Column(name = "mb_back_url")
	private String mbBackUrl;

}
